#ifndef KDCMOVIEINFOMODEL_H
#define KDCMOVIEINFOMODEL_H

#include <QAbstractItemModel>
#include <QList>

#include <kdcnamespace.h>
#include <kdcobject.h> 
#include <kdcdisc.h>
#include <kdcmovie.h>

class KDCMovieInfoModelItem;

class KDCMovieInfoModel : public QAbstractItemModel
{
public:
    KDCMovieInfoModel( QObject *aParent = 0 );
    ~KDCMovieInfoModel();

    int rowCount( const QModelIndex &aParent = QModelIndex() ) const;
    QVariant data( const QModelIndex &aIndex, int aRole = Qt::DisplayRole ) const;
    QModelIndex parent( const QModelIndex &aIndex ) const;
    int columnCount( const QModelIndex &aParent = QModelIndex() ) const;
    QModelIndex index( int aRow, int aColumn, const QModelIndex &aParent = QModelIndex() ) const;
    Qt::ItemFlags flags(const QModelIndex &aIndex ) const;
    QVariant headerData( int aSection, Qt::Orientation aOrientation, int aRole = Qt::DisplayRole ) const;
	
	void setMovie( KDCMovie *aMovie );
private:
	KDCMovieInfoModelItem *pRoot;
};

#endif // KDCMOVIEINFOMODEL_H
